package com.han.yrpc.registrycenter.zookeeper;

import com.han.yrpc.core.registry.Register;

public class ZookeeperRegister implements Register {

    private final int DEFAULT_ZOOKEEPER_PORT = 2181;
    private int ZOOKEEPER_PORT = DEFAULT_ZOOKEEPER_PORT; // todo 通过配置注入

    private String ZOOKEEPER_HOST = ""; // todo 通过配置注入

    @Override
    public int getPort() {
        return ZOOKEEPER_PORT;
    }

    @Override
    public String getHost() {
        return ZOOKEEPER_HOST;
    }
}
